package cn.wolfcode.util;
import cn.wolfcode.domain.Employee;
import org.apache.shiro.SecurityUtils;
public abstract class UserContext {

    /**
     * 获取当前登录用户
     *
     * @return
     */
    public static Employee getCurrentUser() {
          return (Employee) SecurityUtils.getSubject().getPrincipal();
    }


}

